package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.CommentDTO;
import com.lxm.dto.Result;
import com.lxm.entity.LxmComment;
import com.lxm.vo.CommentDetailVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface LxmCommentService extends IService<LxmComment> {

    Result addComment(CommentDTO commentDTO);

    @Transactional
    Result deleteComment(List<Long> commentIds);

    Result listByUserId(Integer current);

    List<CommentDetailVO> getDetailCommentList(Long parentId, Integer commentType, Integer current);
}
